
#include "Python.h"
#include <cppscript>
#include <dynamic/extensions.hpp>

namespace dynamic
{
	namespace python
	{
		/// Throws a var exception if Python raised an exception.
		void throw_exceptions();

		/// Sets the python error in an exception handler
		void set_py_error(const var & ex);

		PyObject * var_to_py(const var & v);
		var py_to_var(PyObject * py);

		extern PyTypeObject var_type;

		struct wrap_var;
		class wrap_pyobject;
	}
}

#include "wrap_var.hpp"
#include "wrap_pyobject.hpp"
